#ifndef H_SDLSCREEN
#define H_SDLSCREEN

#include "Screen.h"
#include <SDL/SDL.h>
#include "debug.h"
#include "rect.h"
#include "math.h"

class SDL_Screen: public Screen {
   private:
      SDL_Surface* screen;
   public:
      SDL_Screen ( int _w, int _h ) : Screen ( _w, _h ) {	  
	 screen = NULL;
	 }
      virtual int init ( Uint32, int, int, int, Uint32  );
      virtual void done ();
      virtual int blitSurface ( Drawable* );
      virtual int flush ();
};

void putPixel( SDL_Surface* surface, Uint32 x, Uint32 y,Uint8 r, Uint8 g, Uint8 b, Uint8 a ); 
void putLine ( SDL_Surface* surface, Rect const & rect, Uint8 r, Uint8 g, Uint8 b, Uint8 a );

#endif
